
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:json_annotation/json_annotation.dart';

part 'full_time_job.g.dart';

//全职岗位
@JsonSerializable()
class FullTimeJob {
  //职位主键
  int? jobId;

  //职位名称
  String? jobName;

  //职位类型
  String? jobType;

  String? typeName;

  String? jobTypeName;

  //期望类型
  String? expectType;

  //薪资最低
  String? salaryMin;

  //薪资最高
  String? salaryMax;

  //薪资单位
  String? salaryUnit;

  //薪资单位名称
  String? salaryUnitName;


  //招聘人数
  int? inviteNum;

  //年龄最低
  int? ageMin;

  //年龄最高
  int? ageMax;

  //学历要求
  String? schoolRecord;

  //经验要求
  String? experience;

  //职位描述
  String? jobDesc;

  //工作福利
  String? jobWelfare;

  //微信号
  String? wechat;

  //QQ号码
  String? qq;

  //手机号码
  String? mobile;

  //电子邮箱
  String? email;

  //环境照片
  String? workPhoto;

  //详细地址
  String? address;

  //省份
  int? province;
  String? provinceName;

  //城市
  int? city;
  String? cityName;

  //地区
  int? area;
  String? areaName;

  //经度
  String? longitude;

  //纬度
  String? latitude;

  // 微信沟通
  String? offerWechat;

  //QQ沟通
  String? offerQq;

  //电话沟通
  String? offerMobile;

  //发布类型 0 全职 1 校招
  String? pubFlag;

  //状态 0 待审核  1 正常  2 下架
  String? status;

  //删除标志 0 正常 2 删除
  String? delFlag;

  //发布人
  int? userId;

  //发布人名称
  String? userName;

  FullTimeJob({
    this.jobId,
    this.jobName,
    this.jobType,
    this.typeName,
    this.jobTypeName,
    this.expectType,
    this.salaryMin,
    this.salaryMax,
    this.salaryUnit,
    this.salaryUnitName,
    this.inviteNum,
    this.ageMin,
    this.ageMax,
    this.schoolRecord,
    this.experience,
    this.jobDesc,
    this.jobWelfare,

  });

  factory FullTimeJob.fromJson(Map<String, dynamic> json) => _$FullTimeJobFromJson(json);

  Map<String, dynamic> toJson() => _$FullTimeJobToJson(this);
}